package com.hbean.mapper;

import com.hbean.utils.Condition;

import java.util.List;

/**
 * @Description:  通用 mapper
 * @Project: hbean
 * @Author: hjibo
 * @CreateDate: 2018-10-24 16:26
 * @ModificationHistory:
 */
public interface A001Mapper<T> {

    /************************ 查 ************************/
    T selectData(T t);
    T selectData(Condition condition);
    List<T> selectDatas(Condition condition);

    /************************ 增 ************************/
    boolean insertData(T t);
    boolean insertDatas(List<T> list);

    /************************ 删 ************************/
    boolean deleteData(T t);
    boolean deleteDatas(Condition condition);

    /************************ 改 ************************/
    boolean updateData(T t);
    boolean updateDatas(Condition condition);
}
